package demo6;

public class singleton
{
    private static singleton instance = new singleton();
   private singleton(){}
   public static singleton getInstance()
   {
      return instance;
   }
}
